package cn.hdu.liang.exceptions;

class FourException extends Exception {

}

public class AlwaysFinally {
    public static void main(String[] args) {
        System.out.println("进入第一个try");
        try {
            System.out.println("进入第二个try");
            try {
                throw new FourException();
            } finally {
                System.out.println("finally第二个try");
            }
        } catch(FourException e) {
            System.out.println("在第一个try中获取FourException");
        } finally {
            System.out.println("finally第一个try");
        }
    }
}
